import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './assets/css/reset.css'
import 'animate.css'

// 引入Vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
// 引入elementui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false

let uinfo = localStorage.getItem('userInfo')
// console.log(uinfo);
if(uinfo){
  console.log(uinfo);
  store.commit('user/userInfoMut',JSON.parse(uinfo))
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
